package com.example.yk2021xm04.service.impl;

import com.example.yk2021xm04.service.IRbacService;
import com.example.yk2021xm04.service.IUserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RbacServiceImpl implements IRbacService {

    @Resource
    private IUserRoleService userRoleService;

    @Override
    public List<String> findRoleByUserName(String userName) {
        return userRoleService.findRolesByUserName(userName);
    }

}
